#!/bin/bash 
#
# https://docs.docker.com/docker-hub/builds/advanced/
#
BUILD_DATE=$(date +%Y-%m-%dT%H:%M:%S%Z)
docker build -t $IMAGE_NAME \
    --cache-from mingc/android-build-box:latest \
    --build-arg BUILD_DATE=$BUILD_DATE \
    --build-arg SOURCE_BRANCH=$SOURCE_BRANCH \
    --build-arg SOURCE_COMMIT=$SOURCE_COMMIT \
    --build-arg DOCKER_TAG=$DOCKER_TAG .

